package com.cfs.po.sys;

import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.cfs.po.Vo;

@XmlRootElement(name = "User")
public class User extends Vo {

	private static final long serialVersionUID = -659170938885168855L;

	private Long id;
	private String name;
	private String realname;
	private String phoneno;
	private Long org;
	private Long roleId;
	private String email;
	private Short state;

	private List<UserRole> roleList;
	private Role currRole;
	private Org currOrg;

	private String pass;
	private String pass_new;


	public Short getState() {
		return state;
	}

	public void setState(Short state) {
		this.state = state;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public Long getOrg() {
		return org;
	}

	public void setOrg(Long org) {
		this.org = org;
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getPhoneno() {
		return phoneno;
	}

	public void setPhoneno(String phoneno) {
		this.phoneno = phoneno;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


	public List<UserRole> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<UserRole> roleList) {
		this.roleList = roleList;
	}

	public Role getCurrRole() {
		return currRole;
	}

	public void setCurrRole(Role currRole) {
		this.currRole = currRole;
	}

	public Org getCurrOrg() {
		return currOrg;
	}

	public void setCurrOrg(Org currOrg) {
		this.currOrg = currOrg;
	}

	public String getPass_new() {
		return pass_new;
	}

	public void setPass_new(String passNew) {
		pass_new = passNew;
	}
	
	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
}
